<script setup>
import ImageAnalyzer from "./components/ImageAnalyzer.vue";
</script>

<template>
    <div class="app-container">
        <header>
            <div class="logo-container">
                <!-- <img src="./assets/logo.svg" alt="Vue Logo" class="logo" /> -->
                <h1>图像分析应用</h1>
            </div>
        </header>
        <main>
            <ImageAnalyzer />
        </main>
        <footer>
            <p>© 2023 图像分析应用 | 基于Vue.js开发</p>
        </footer>
    </div>
</template>

<style scoped>
.app-container {
    /* max-width: 1280px; */
    margin: 0 auto;
    padding: 0 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    color: #2c3e50;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e6ed;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
}

h1 {
    font-size: 26px;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
    position: relative;
}

.logo-container h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-color: #42b883;
    border-radius: 3px;
}

.logo {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    filter: drop-shadow(0 0 2em #42b883aa);
    transform: rotate(5deg) scale(1.1);
}

main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1200px) {
    .app-container {
        padding: 30px;
    }

    header {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 20px 15px;
    }

    header {
        margin-bottom: 30px;
        padding: 15px;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-container h1 {
        font-size: 24px;
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #42b883;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #359268;
}
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e6ed;
    color: #8492a6;
    font-size: 14px;
}
</style>
